<template>
	<view class="main">
		<u-swiper :list="list"></u-swiper>
	</view>
</template>

<script>
	import {
		login
	} from '../../config/api.js';
	export default {
		data() {
			return {
				list: [
					'https://cdn.uviewui.com/uview/swiper/swiper1.png',
					'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					'https://cdn.uviewui.com/uview/swiper/swiper3.png',
				]
			}
		},
		onLoad() {
			this.login('name', 'password');
		},
		methods: {
			login(name, password) {
				login({
					name: name,
					password: password
				}).then(res => {
					console.log(res);
				})
			}
		}
	}
</script>

<style>
	.main {}
</style>
